package com.yxp.webtest.maintest;

import com.yxp.webtest.bean.MyApplicationEvent;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class SpringEventTestMain {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("classpath:spring/spring-event.xml");

        context.publishEvent(new MyApplicationEvent("我发布的事件"));
    }
}
